package com.fqxl.labour.service.impl;

import com.fqxl.labour.domain.LabourAnnouncement;
import com.fqxl.labour.mapper.AnnouncementMapper;
import com.fqxl.labour.service.AnnouncementService;
import com.fqxl.labour.untils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName: AnnouncementServiceImpl
 * @Description:
 * @Author: Awen
 * @Date: 2023/5/17 13:52
 */
@Service
public class AnnouncementServiceImpl implements AnnouncementService {

    @Autowired
    private AnnouncementMapper announcementMapper;

    /**
     * 获取平台公告
     * @return
     */
    @Override
    public R getAnnouncement() {

        LabourAnnouncement announcement = announcementMapper.getAnnouncement();

        return R.ok(announcement);
    }
}
